import routes from './subRoutes'

export default [
  {
    path: '/',
    component: '@/layouts/SecurityLayout',
    routes
  },
  {
    path: '/main',
    component: '@/layouts/DoorLayout',
    routes: [
      {
        name: '登录',
        path: '/main/login',
        component: './Login'
      },
      {
        name: '登录',
        path: '/main/rolePicker',
        component: './RolePicker'
      },
      {
        name: '平台列表',
        path: '/main/platformPicker',
        component: './PlatformPicker'
      }
    ]
  },
  {
    name: '物流查询',
    path: '/expressQuery',
    component: './ExpressQuery/ExpressQuery'
  },
  {
    name: '小程序中间页',
    path: '/applet/:token',
    component: '@/pages/AppletMiddlePage/AppletMiddlePage'
  },
  {
    name: '数据开放平台',
    path: '/openPlatform/:id',
    component: './OpenPlatform/OpenPlatform'
  }
]
